package com.example.pattern.strategy;

public abstract class Zombie {

    private Displayable displayable;
    private Moveable moveable;
    private Attackable attackable;

    public Zombie(Displayable displayable, Moveable moveable, Attackable attackable) {
        this.displayable = displayable;
        this.moveable = moveable;
        this.attackable = attackable;
    }

    public void display(){
        displayable.display();
    }

    public void attack(){
        attackable.attack();
    }

    public void move(){
        moveable.move();
    }

}
